<template>
  <div class="popover flex">
    <el-form
    class="w-[530px]"
      :rules="rules"
      :label-position="labelPosition"
      label-width="70px"
      :model="formLabelAlign"
    >

      <div class="flex">
        <p>
        <el-form-item label="用户名">
          <el-input v-model="formLabelAlign.username"></el-input>
        </el-form-item>
      </p>
      <p>
        <el-form-item label="电话">
          <el-input v-model="formLabelAlign.phone"></el-input>
        </el-form-item>
      </p>
      </div>

    <div class="flex">
      <p>
        <el-form-item label="昵称">
          <el-input v-model="formLabelAlign.type"></el-input>
        </el-form-item>
      </p>
      <p>
        <el-form-item label="邮箱">
          <el-input v-model="formLabelAlign.type"></el-input>
        </el-form-item>
      </p>
    </div>

<div class="flex">
  <p>
        <el-form-item label="部门">
          <el-select
            v-model="formLabelAlign.dept"
            placeholder="选择部门"
          >
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-form-item>
      </p>
      <p>
        <el-form-item label="岗位">
          <el-select
            v-model="formLabelAlign.region"
            placeholder="性别"
          >
            <el-option label="男" value="shanghai"></el-option>
            <el-option label="女" value="beijing"></el-option>
          </el-select>
        </el-form-item>
      </p>
</div>

<div class="flex">
  <p class="flex-1">
        <el-form-item label="性别">
          <el-radio-group v-model="formLabelAlign.resource">
            <el-radio label="男"></el-radio>
            <el-radio label="女"></el-radio>
          </el-radio-group>
        </el-form-item>
      </p>
      <p class="flex-1">
        <el-form-item label="状态">
          <el-radio-group v-model="formLabelAlign.resource">
            <el-radio label="激活"></el-radio>
            <el-radio label="禁用"></el-radio>
          </el-radio-group>
        </el-form-item>
      </p>
</div>
      <p>
        <el-form-item label="活动区域">
          <el-select
            v-model="formLabelAlign.region"
            placeholder="请选择活动区域"
          >
          <!-- ----------------------------------------------------------------------------- rqwre-->

            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-form-item>
      </p>
    </el-form>
  </div>
</template>

<script>
export default {
  name: 'popovers',
  props: {},
  components: {},
  data () {
    return {
      labelPosition: 'right',
      formLabelAlign: {
        username: '',
        region: '',
        dept: '',
        type: '',
        resource: ''
      },
      rules: {
        name: [
          { required: true, message: '请输入活动名称', trigger: 'blur' },
          { min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
        ],
        region: [
          { required: true, message: '请选择活动区域', trigger: 'change' }
        ],
        date1: [
          {
            type: 'date',
            required: true,
            message: '请选择日期',
            trigger: 'change'
          }
        ],
        desc: [{ required: true, message: '请填写活动形式', trigger: 'blur' }]
      }
    }
  },
  methods: {},
  mounted () {},
  watch: {},
  computed: {},
  filters: {}
}
</script>

<style lang='scss' scoped>
.el-select--small{
width: 100%;
}

</style>
